<?php
include_once "../common/header.php";
?>
<script type="text/javascript">
	function get_time()
	{
	        date = new Date;
	        year = date.getFullYear();
	        month = date.getMonth();
	        months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
	        d = date.getDate();
	        day = date.getDay();
	        days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
	        h = date.getHours();
	        if(h<10)
	        {
	                h = "0"+h;
	        }
	        m = date.getMinutes();
	        if(m<10)
	        {
	                m = "0"+m;
	        }
	        s = date.getSeconds();
	        if(s<10)
	        {
	                s = "0"+s;
	        }
	        result = ''+h+':'+m+':'+s;
			return result;
	}
	function update_chat()
	{
		var chatdiv = document.getElementById("chatbox");
		var newcontent = document.createElement('div');
		newcontent.innerHTML = '<p>' + get_time() + ' : ' + document.chat_input.chat_text.value + '</p>';
		
		while (newcontent.firstChild) {
			chatdiv.appendChild(newcontent.firstChild);
		}
		
		document.chat_input.chat_text.value = null;
		return false;
	}
</script>
<h2>CSC 360 - Quiz 1</h2>
<h3>Notes for Logan Matthews</h3>

<p>The notes below will be saved each time you add a new note.  All notes will be submitted to the instructor when you submit your notes and close this quiz from the <a href="../ta_quiz/index.php">Quiz 1</a> page.</p>

<div id="chatbox" style="width 80%; text-align:left; padding: 10px; border: 2px solid #000;">
	<p>18:37:39 : Confidence level of continuous authentication very low</p>
	<p>18:37:39 : Observed client copy and pasting answers into quiz from wikipedia</p>
</div><br /><br />
<form id="chat_input" name="chat_input" onsubmit="return update_chat();">
	<table width="100%" valign="middle">
		<tr>
			<td width="80%"><input style="border:2px solid #000; width:90%;" type="text" id="chat_text" name="chat_text" /></td>
			<td><input type="submit" class="fancybutton" value="Add note" /></td>
		</tr>
	</table>
</form>
<br /><br />
<p style="clear:both;"></p>


<center>
<form action="../ta_quiz/index.php">
	<input type="submit" class="fancybutton" value="Return to quiz 1" />
</form>
</center>
<br /><br/><br/><br /><br/><br/><br/>

<?php
include_once "leftcol.php";
include_once "rightcol.php";
include_once "../common/footer.php";
?>